public class test_1_3 {
    public static void main(String[] args) {
        MyLinkedList myLinkedList=new MyLinkedList();
        myLinkedList.addFirst(1);
        myLinkedList.addFirst(2);
        myLinkedList.addFirst(3);
        myLinkedList.display();

        myLinkedList.addLast(4);
        myLinkedList.addLast(5);
        myLinkedList.addLast(6);
        myLinkedList.display();

        myLinkedList.addIndex(2,2);
        myLinkedList.addIndex(3,2);
        myLinkedList.addIndex(4,2);
        myLinkedList.display();
        System.out.println("------------------");

        System.out.println(myLinkedList.size());
        System.out.println("------------------");

        myLinkedList.remove(3);
        myLinkedList.remove(6);
        myLinkedList.remove(1);
        myLinkedList.display();
        System.out.println("-------------------");

        myLinkedList.remove(4);
        myLinkedList.display();
        myLinkedList.removeAllKey(2);
        myLinkedList.display();
        System.out.println("------------------");

        myLinkedList.clear();
        myLinkedList.display();

    }


}





